Dit commando wijzigt tabellen en heeft twee vormen:
alter table
tabel add (columndeclaration, columndeclaration,
...)
alter table tabel modify (columndeclaration,
columndeclaration, ...)
Een voorbeeld om een kolom met de
geboortedatum aan een tabel STUDENT toe te voegen is:
alter table STUDENT add (geboortedatum date)Om de ruimte voor een naam in de STUDENT tabel 40 karakters lang en de ruimte voor het adres 50 lang te laten zijn, moet het volgende commando uitgevoerd worden:
alter table STUDENT modify (naam char(40), adres char(50))Tenslotte twee opmerkingen: